export default {
	data() {
		return {
			// 默认导航栏配置
			/** 
			*** color：文字和icon的颜色
			*** isLarge：是否放大图标，类似中间按钮突出的效果，支持所有都这样配置（尽量不这样使用）
			*** -------：isLarge=true,则不显示badge和dot
			*** badge：显示角标数字
			*** dot：显示小数点，配置未true则不显示角标
			**/
			mxcTabbars: [{
					title: "首页",
					icon: "home-filled",
					iconPath: "/static/images/rh-home-fill.png",
					selectedIconPath: "/static/images/rh-home-fill-select.png",
					url: "/pages/index/index",
					color: "#979797",
					isLarge: false,
					badge: 55,
					dot: false
				},
				{
					title: "请假",
					icon: "plus-filled",
					iconPath: "/static/images/rh-plus-fill.png",
					selectedIconPath: "/static/images/rh-plus-fill-select.png",
					url: "/pages/vacate/vacate",
					color: "#979797",
					isLarge: true,
					badge: null,
					dot: false
				},
				{
					title: "我的",
					icon: "person-filled",
					iconPath: "/static/images/rh-user.png",
					selectedIconPath: "/static/images/rh-user-select.png",
					url: "/pages/user/my",
					color: "#979797",
					isLarge: false,
					badge: null,
					dot: true
				}
			],
			// 需要发送全局监听的配置，统一来配置
			mxBaseNavBarList: "BaseNavBarShowList",
		}
	},
	computed: {},
	methods: {
		// 全局控制navbar内部list的隐藏
		mxGlobalNavBarListEmit(status) {
			uni.$emit(this.mxBaseNavBarList, status === true ? true : false)
		}
	}
}
